package cn.serenedream.housedecoration.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;

public class ProductWithModelDTO {
    String id;

    @NotBlank(message = "产品名不得为空")
    private String productName;

    @NotNull(message = "产品单价不得为空")
    @Pattern(regexp = "\\d{0,}\\.\\d{2}", message = "金额格式不正确")
    private String price;

    private String address;
    @NotNull(message = "产品规格不得为空")
    @Pattern(regexp = "\\d{0,}\\*\\d{0,}", message = "产品规格格式不正确")
    private String size;
    @NotNull(message = "产品厚度不得为空")
    @Pattern(regexp = "\\d{0,}", message = "产品厚度格式不正确")
    private String thickness;

    public ProductWithModelDTO() {
    }

    public ProductWithModelDTO(String id, String productName, String price, String address, String size, String thickness) {
        this.id = id;
        this.productName = productName;
        this.price = price;
        this.address = address;
        this.size = size;
        this.thickness = thickness;
    }


    /**
     * 获取
     *
     * @return productName
     */
    public String getProductName() {
        return productName;
    }

    /**
     * 设置
     *
     * @param productName
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * 获取
     *
     * @return price
     */
    public String getPrice() {
        return price;
    }

    /**
     * 设置
     *
     * @param price
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * 获取
     *
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     *
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     *
     * @return size
     */
    public String getSize() {
        return size;
    }

    /**
     * 设置
     *
     * @param size
     */
    public void setSize(String size) {
        this.size = size;
    }

    /**
     * 获取
     *
     * @return thickness
     */
    public String getThickness() {
        return thickness;
    }

    /**
     * 设置
     *
     * @param thickness
     */
    public void setThickness(String thickness) {
        this.thickness = thickness;
    }

    public String toString() {
        return "ProductWithModelDTO{productName = " + productName + ", price = " + price + ", address = " + address + ", size = " + size + ", thickness = " + thickness + "}";
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }
}